/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"



void setup_scr_page_alerm_add(lv_ui *ui)
{
    //Write codes page_alerm_add
    ui->page_alerm_add = lv_obj_create(NULL);
    lv_obj_set_size(ui->page_alerm_add, 480, 480);
    lv_obj_set_scrollbar_mode(ui->page_alerm_add, LV_SCROLLBAR_MODE_OFF);

    //Write style for page_alerm_add, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->page_alerm_add, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->page_alerm_add, lv_color_hex(0x152029), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->page_alerm_add, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->page_alerm_add, lv_color_hex(0x152029), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_main_stop(ui->page_alerm_add, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_stop(ui->page_alerm_add, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_cont_1
    ui->page_alerm_add_cont_1 = lv_obj_create(ui->page_alerm_add);
    lv_obj_set_pos(ui->page_alerm_add_cont_1, 112, 163);
    lv_obj_set_size(ui->page_alerm_add_cont_1, 238, 120);
    lv_obj_set_scrollbar_mode(ui->page_alerm_add_cont_1, LV_SCROLLBAR_MODE_OFF);

    //Write style for page_alerm_add_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->page_alerm_add_cont_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->page_alerm_add_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->page_alerm_add_cont_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_side(ui->page_alerm_add_cont_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->page_alerm_add_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->page_alerm_add_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->page_alerm_add_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->page_alerm_add_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->page_alerm_add_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->page_alerm_add_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->page_alerm_add_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_spinbox_2
    ui->page_alerm_add_spinbox_2 = lv_spinbox_create(ui->page_alerm_add_cont_1);
    lv_obj_set_pos(ui->page_alerm_add_spinbox_2, 105, 13);
    lv_obj_set_pos(ui->page_alerm_add_spinbox_2, 105, 13);
    lv_obj_set_width(ui->page_alerm_add_spinbox_2, 70);
    lv_obj_set_height(ui->page_alerm_add_spinbox_2, 40);
    lv_spinbox_set_digit_format(ui->page_alerm_add_spinbox_2, 2, 2);
    lv_spinbox_set_range(ui->page_alerm_add_spinbox_2, -99, 99);
    int32_t page_alerm_add_spinbox_2_h = lv_obj_get_height(ui->page_alerm_add_spinbox_2);
    ui->page_alerm_add_spinbox_2_btn_plus = lv_button_create(ui->page_alerm_add_cont_1);
    lv_obj_set_pos(ui->page_alerm_add_spinbox_2, 105, 13);
    lv_obj_set_size(ui->page_alerm_add_spinbox_2_btn_plus, page_alerm_add_spinbox_2_h, page_alerm_add_spinbox_2_h);
    lv_obj_align_to(ui->page_alerm_add_spinbox_2_btn_plus, ui->page_alerm_add_spinbox_2, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
    lv_obj_set_style_bg_image_src(ui->page_alerm_add_spinbox_2_btn_plus, LV_SYMBOL_PLUS, 0);
    lv_obj_add_event_cb(ui->page_alerm_add_spinbox_2_btn_plus, lv_page_alerm_add_spinbox_2_increment_event_cb, LV_EVENT_ALL, NULL);
    ui->page_alerm_add_spinbox_2_btn_minus = lv_button_create(ui->page_alerm_add_cont_1);
    lv_obj_set_size(ui->page_alerm_add_spinbox_2_btn_minus, page_alerm_add_spinbox_2_h, page_alerm_add_spinbox_2_h);
    lv_obj_align_to(ui->page_alerm_add_spinbox_2_btn_minus, ui->page_alerm_add_spinbox_2, LV_ALIGN_OUT_LEFT_MID, -5, 0);
    lv_obj_set_style_bg_image_src(ui->page_alerm_add_spinbox_2_btn_minus, LV_SYMBOL_MINUS, 0);
    lv_obj_add_event_cb(ui->page_alerm_add_spinbox_2_btn_minus, lv_page_alerm_add_spinbox_2_decrement_event_cb, LV_EVENT_ALL, NULL);

    //Write style for page_alerm_add_spinbox_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->page_alerm_add_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->page_alerm_add_spinbox_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->page_alerm_add_spinbox_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->page_alerm_add_spinbox_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->page_alerm_add_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->page_alerm_add_spinbox_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_side(ui->page_alerm_add_spinbox_2, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->page_alerm_add_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->page_alerm_add_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->page_alerm_add_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->page_alerm_add_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->page_alerm_add_spinbox_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->page_alerm_add_spinbox_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->page_alerm_add_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->page_alerm_add_spinbox_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->page_alerm_add_spinbox_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->page_alerm_add_spinbox_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for page_alerm_add_spinbox_2, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->page_alerm_add_spinbox_2, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->page_alerm_add_spinbox_2, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->page_alerm_add_spinbox_2, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->page_alerm_add_spinbox_2, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->page_alerm_add_spinbox_2, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->page_alerm_add_spinbox_2, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT);

    //Write style state: LV_STATE_DEFAULT for &style_page_alerm_add_spinbox_2_extra_btns_main_default
    static lv_style_t style_page_alerm_add_spinbox_2_extra_btns_main_default;
    ui_init_style(&style_page_alerm_add_spinbox_2_extra_btns_main_default);

    lv_style_set_text_color(&style_page_alerm_add_spinbox_2_extra_btns_main_default, lv_color_hex(0xffffff));
    lv_style_set_text_font(&style_page_alerm_add_spinbox_2_extra_btns_main_default, &lv_font_montserratMedium_12);
    lv_style_set_text_opa(&style_page_alerm_add_spinbox_2_extra_btns_main_default, 255);
    lv_style_set_bg_opa(&style_page_alerm_add_spinbox_2_extra_btns_main_default, 255);
    lv_style_set_bg_color(&style_page_alerm_add_spinbox_2_extra_btns_main_default, lv_color_hex(0x2195f6));
    lv_style_set_bg_grad_dir(&style_page_alerm_add_spinbox_2_extra_btns_main_default, LV_GRAD_DIR_NONE);
    lv_style_set_border_width(&style_page_alerm_add_spinbox_2_extra_btns_main_default, 0);
    lv_style_set_radius(&style_page_alerm_add_spinbox_2_extra_btns_main_default, 5);
    lv_style_set_shadow_width(&style_page_alerm_add_spinbox_2_extra_btns_main_default, 0);
    lv_obj_add_style(ui->page_alerm_add_spinbox_2_btn_plus, &style_page_alerm_add_spinbox_2_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_add_style(ui->page_alerm_add_spinbox_2_btn_minus, &style_page_alerm_add_spinbox_2_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_spinbox_1
    ui->page_alerm_add_spinbox_1 = lv_spinbox_create(ui->page_alerm_add_cont_1);
    lv_obj_set_pos(ui->page_alerm_add_spinbox_1, 105, 67);
    lv_obj_set_pos(ui->page_alerm_add_spinbox_1, 105, 67);
    lv_obj_set_width(ui->page_alerm_add_spinbox_1, 70);
    lv_obj_set_height(ui->page_alerm_add_spinbox_1, 40);
    lv_spinbox_set_digit_format(ui->page_alerm_add_spinbox_1, 2, 2);
    lv_spinbox_set_range(ui->page_alerm_add_spinbox_1, -99, 99);
    int32_t page_alerm_add_spinbox_1_h = lv_obj_get_height(ui->page_alerm_add_spinbox_1);
    ui->page_alerm_add_spinbox_1_btn_plus = lv_button_create(ui->page_alerm_add_cont_1);
    lv_obj_set_pos(ui->page_alerm_add_spinbox_1, 105, 67);
    lv_obj_set_size(ui->page_alerm_add_spinbox_1_btn_plus, page_alerm_add_spinbox_1_h, page_alerm_add_spinbox_1_h);
    lv_obj_align_to(ui->page_alerm_add_spinbox_1_btn_plus, ui->page_alerm_add_spinbox_1, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
    lv_obj_set_style_bg_image_src(ui->page_alerm_add_spinbox_1_btn_plus, LV_SYMBOL_PLUS, 0);
    lv_obj_add_event_cb(ui->page_alerm_add_spinbox_1_btn_plus, lv_page_alerm_add_spinbox_1_increment_event_cb, LV_EVENT_ALL, NULL);
    ui->page_alerm_add_spinbox_1_btn_minus = lv_button_create(ui->page_alerm_add_cont_1);
    lv_obj_set_size(ui->page_alerm_add_spinbox_1_btn_minus, page_alerm_add_spinbox_1_h, page_alerm_add_spinbox_1_h);
    lv_obj_align_to(ui->page_alerm_add_spinbox_1_btn_minus, ui->page_alerm_add_spinbox_1, LV_ALIGN_OUT_LEFT_MID, -5, 0);
    lv_obj_set_style_bg_image_src(ui->page_alerm_add_spinbox_1_btn_minus, LV_SYMBOL_MINUS, 0);
    lv_obj_add_event_cb(ui->page_alerm_add_spinbox_1_btn_minus, lv_page_alerm_add_spinbox_1_decrement_event_cb, LV_EVENT_ALL, NULL);

    //Write style for page_alerm_add_spinbox_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->page_alerm_add_spinbox_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->page_alerm_add_spinbox_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->page_alerm_add_spinbox_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->page_alerm_add_spinbox_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->page_alerm_add_spinbox_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->page_alerm_add_spinbox_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_side(ui->page_alerm_add_spinbox_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->page_alerm_add_spinbox_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->page_alerm_add_spinbox_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->page_alerm_add_spinbox_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->page_alerm_add_spinbox_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->page_alerm_add_spinbox_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->page_alerm_add_spinbox_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->page_alerm_add_spinbox_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->page_alerm_add_spinbox_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->page_alerm_add_spinbox_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->page_alerm_add_spinbox_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for page_alerm_add_spinbox_1, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->page_alerm_add_spinbox_1, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->page_alerm_add_spinbox_1, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->page_alerm_add_spinbox_1, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->page_alerm_add_spinbox_1, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->page_alerm_add_spinbox_1, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->page_alerm_add_spinbox_1, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT);

    //Write style state: LV_STATE_DEFAULT for &style_page_alerm_add_spinbox_1_extra_btns_main_default
    static lv_style_t style_page_alerm_add_spinbox_1_extra_btns_main_default;
    ui_init_style(&style_page_alerm_add_spinbox_1_extra_btns_main_default);

    lv_style_set_text_color(&style_page_alerm_add_spinbox_1_extra_btns_main_default, lv_color_hex(0xffffff));
    lv_style_set_text_font(&style_page_alerm_add_spinbox_1_extra_btns_main_default, &lv_font_montserratMedium_12);
    lv_style_set_text_opa(&style_page_alerm_add_spinbox_1_extra_btns_main_default, 255);
    lv_style_set_bg_opa(&style_page_alerm_add_spinbox_1_extra_btns_main_default, 255);
    lv_style_set_bg_color(&style_page_alerm_add_spinbox_1_extra_btns_main_default, lv_color_hex(0x2195f6));
    lv_style_set_bg_grad_dir(&style_page_alerm_add_spinbox_1_extra_btns_main_default, LV_GRAD_DIR_NONE);
    lv_style_set_border_width(&style_page_alerm_add_spinbox_1_extra_btns_main_default, 0);
    lv_style_set_radius(&style_page_alerm_add_spinbox_1_extra_btns_main_default, 5);
    lv_style_set_shadow_width(&style_page_alerm_add_spinbox_1_extra_btns_main_default, 0);
    lv_obj_add_style(ui->page_alerm_add_spinbox_1_btn_plus, &style_page_alerm_add_spinbox_1_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_add_style(ui->page_alerm_add_spinbox_1_btn_minus, &style_page_alerm_add_spinbox_1_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_label_3
    ui->page_alerm_add_label_3 = lv_label_create(ui->page_alerm_add_cont_1);
    lv_obj_set_pos(ui->page_alerm_add_label_3, 9, 25);
    lv_obj_set_size(ui->page_alerm_add_label_3, 36, 16);
    lv_label_set_text(ui->page_alerm_add_label_3, "小时");
    lv_label_set_long_mode(ui->page_alerm_add_label_3, LV_LABEL_LONG_WRAP);

    //Write style for page_alerm_add_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->page_alerm_add_label_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->page_alerm_add_label_3, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->page_alerm_add_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->page_alerm_add_label_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->page_alerm_add_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_label_2
    ui->page_alerm_add_label_2 = lv_label_create(ui->page_alerm_add_cont_1);
    lv_obj_set_pos(ui->page_alerm_add_label_2, 9, 79);
    lv_obj_set_size(ui->page_alerm_add_label_2, 36, 16);
    lv_label_set_text(ui->page_alerm_add_label_2, "分钟\n");
    lv_label_set_long_mode(ui->page_alerm_add_label_2, LV_LABEL_LONG_WRAP);

    //Write style for page_alerm_add_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->page_alerm_add_label_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->page_alerm_add_label_2, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->page_alerm_add_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->page_alerm_add_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->page_alerm_add_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_cont_2
    ui->page_alerm_add_cont_2 = lv_obj_create(ui->page_alerm_add);
    lv_obj_set_pos(ui->page_alerm_add_cont_2, 0, 0);
    lv_obj_set_size(ui->page_alerm_add_cont_2, 480, 45);
    lv_obj_set_scrollbar_mode(ui->page_alerm_add_cont_2, LV_SCROLLBAR_MODE_OFF);

    //Write style for page_alerm_add_cont_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->page_alerm_add_cont_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->page_alerm_add_cont_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->page_alerm_add_cont_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_side(ui->page_alerm_add_cont_2, LV_BORDER_SIDE_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->page_alerm_add_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->page_alerm_add_cont_2, 19, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->page_alerm_add_cont_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->page_alerm_add_cont_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->page_alerm_add_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->page_alerm_add_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->page_alerm_add_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->page_alerm_add_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->page_alerm_add_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_ac_back
    ui->page_alerm_add_ac_back = lv_image_create(ui->page_alerm_add_cont_2);
    lv_obj_set_pos(ui->page_alerm_add_ac_back, 16, 8);
    lv_obj_set_size(ui->page_alerm_add_ac_back, 30, 30);
    lv_obj_add_flag(ui->page_alerm_add_ac_back, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->page_alerm_add_ac_back, &_back_RGB565A8_30x30);
    lv_image_set_pivot(ui->page_alerm_add_ac_back, 50,50);
    lv_image_set_rotation(ui->page_alerm_add_ac_back, 0);

    //Write style for page_alerm_add_ac_back, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->page_alerm_add_ac_back, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->page_alerm_add_ac_back, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_label_1
    ui->page_alerm_add_label_1 = lv_label_create(ui->page_alerm_add_cont_2);
    lv_obj_set_pos(ui->page_alerm_add_label_1, 201, 15);
    lv_obj_set_size(ui->page_alerm_add_label_1, 77, 16);
    lv_label_set_text(ui->page_alerm_add_label_1, "添加闹钟");
    lv_label_set_long_mode(ui->page_alerm_add_label_1, LV_LABEL_LONG_WRAP);

    //Write style for page_alerm_add_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->page_alerm_add_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->page_alerm_add_label_1, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->page_alerm_add_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->page_alerm_add_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->page_alerm_add_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes page_alerm_add_btn_1
    ui->page_alerm_add_btn_1 = lv_button_create(ui->page_alerm_add);
    lv_obj_set_pos(ui->page_alerm_add_btn_1, 181, 365);
    lv_obj_set_size(ui->page_alerm_add_btn_1, 100, 50);
    ui->page_alerm_add_btn_1_label = lv_label_create(ui->page_alerm_add_btn_1);
    lv_label_set_text(ui->page_alerm_add_btn_1_label, "保存");
    lv_label_set_long_mode(ui->page_alerm_add_btn_1_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->page_alerm_add_btn_1_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->page_alerm_add_btn_1, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->page_alerm_add_btn_1_label, LV_PCT(100));

    //Write style for page_alerm_add_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->page_alerm_add_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->page_alerm_add_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->page_alerm_add_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->page_alerm_add_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->page_alerm_add_btn_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->page_alerm_add_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->page_alerm_add_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->page_alerm_add_btn_1, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->page_alerm_add_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->page_alerm_add_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //The custom code of page_alerm_add.


    //Update current screen layout.
    lv_obj_update_layout(ui->page_alerm_add);

    //Init events for screen.
    events_init_page_alerm_add(ui);
}
